package com.example.demo.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.example.demo.Excel.ExcelColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
@TableName("t_d_role")
@ApiModel("角色")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId("id")
    @ApiModelProperty(value = "编号")
    @ExcelColumn(value = "编号",col = 1)
    private String id;
    /**
     * 角色名
     */
    @TableField("rolename")
    @ApiModelProperty(value = "角色名")
    @ExcelColumn(value = "角色名",col = 2)
    private String rolename;
    /**
     * 标记
     */
    @TableField("flag")
    @ApiModelProperty(value = "标记")
    private Integer flag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Role{" +
        "id=" + id +
        ", rolename=" + rolename +
        ", flag=" + flag +
        "}";
    }
}
